package com.longe.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("goods")
public class GoodsController {

    @RequestMapping("list")
    public String index(HttpServletRequest request){

        HttpSession session = request.getSession();
        Object user = session.getAttribute("user");

        return "goods-list";
    }
}
